package com.itqf.dynamic_proxy1;

import com.itqf.dynamic_proxy1.factory.MyCglibProxtFactory;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/14
 * @Time: 上午11:51
 */
public class TestCglibProxyFactory {
    public  static  void  main(String[]args){

        UsersServiceImpl proxy =(UsersServiceImpl) MyCglibProxtFactory.createProxy(new UsersServiceImpl());
        proxy.add();
        proxy.delete();
        proxy.update();


        GoodsServiceIMpl proxy1 =(GoodsServiceIMpl) MyCglibProxtFactory.createProxy(new GoodsServiceIMpl());
        proxy1.add();
        proxy1.delete();
        proxy1.update();



    }
}
